<!DOCTYPE html>
<html>
<head lang="en">
    <meta charset="UTF-8">
    <title>ajax+html5单图上传demo</title>
    <!--引入CSS-->
    <link rel="stylesheet" type="text/css" href="amazeui/css/amazeui.css">
    <link rel="stylesheet" href="changeHtml5Input.css"/>

    <!--引入jquery-->
    <script src="jquery-1.11.3.js"></script>
    <script src="jquery.form.js"></script>

</head>
<body>
<form id="myForm">
    <img src="" id="img0"/>
    <div id="uploadmessage"></div>
    <div>
        <a href="javascript:;" class="file" >
            选择文件
            <input type="file" name="file" id="file" accept="image/jpg, image/jpeg, image/png"/>
        </a>
    </div>
    <input type="submit" value="开始上传" class="am-btn am-btn-success"/>
</form>

<script src="singleImgFileAjaxUploader.js"></script>
</body>
</html>